package cn.gson.fengboot.model.service;

import cn.gson.fengboot.model.dao.QmodelDao;
import cn.gson.fengboot.model.dao.QmodeldetailsDao;
import cn.gson.fengboot.model.dao.QproductDao;
import cn.gson.fengboot.model.mapper.QguigeMapper;
import cn.gson.fengboot.model.mapper.QproductMapper;
import cn.gson.fengboot.model.pojos.Qmodel;
import cn.gson.fengboot.model.pojos.Qmodeldetails;
import cn.gson.fengboot.model.pojos.Qproduct;
import cn.gson.fengboot.model.pojos.QtypeEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class QguigeService {

    @Autowired
    QguigeMapper qguigeMapper;

    @Autowired
    QmodelDao qmodelDao;

    @Autowired
    QmodeldetailsDao qmodeldetailsDao;


    //查询
    public List<Qmodeldetails> qmodelList(String input23,String value7){
        return qguigeMapper.guigepro(input23,value7);
    }

    //删除
    public void deleteById(int idd){
        qmodeldetailsDao.deleteById(idd);
    }
}
